<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>
<link rel='stylesheet' type='text/css' href='css/body.css'>
<link rel='stylesheet' type='text/css' href='css/table.css'>
<title> manager </title>
</head>
<body>
    <script src='javascript/form.js' language='JavaScript'></script>
    <script src='javascript/select_field.js' language='JavaScript'></script>
    <script src='javascript/global_objects.js' language='JavaScript'></script>
    <script src='javascript/templates.js' language='JavaScript'></script>
    
    <div class='BaseForPage'>
        <div class='BaseForHead'>
            <div class='HeadLeftSide'>
                Timesheet: {{ manager_name }}
            </div>
            <div class='HeadRightSide'>
            </div>
        </div>

        <div class='BaseForMenu'>
            <div class='MenuElement'>
                <a href="{% url user %}">user</a>
            </div>
            <div class='MenuElement'>
                <a href="{% url manager %}">manager</a>
            </div>
            <div class='MenuElement'>
                <a href='{% url auth_logout %}'>log out</a>
            </div>
            <div class='MenuEmptyBlock'>
            </div>
        </div>
        
        <div class='BaseForTables'>
            <div class='HSpaceBeforeSelectFields'>
            </div>
            <div class='BaseForSelectFields'>
                <div class='EmptyBlockSelectFields'>
                </div>
                <div id='project_select_div' name='project_select_div' class='ProjectSelectFields'>
                    project: ->...
                </div>
                <div id='user_select_div' name='user_select_div' class='UserSelectFields'>
                    user: ->...
                </div>
            </div>
            <div class='BaseForTopTables'>
                <div class='EmptyBlockBeforeTables'>
                </div>
                <div id='div_project' class='ProjectTable'>
                    <div class='Table'>
                        <div class='TableTitle'>
                            <center> project: </center>
                        </div>
                        {% for p in project %}
                            <div onclick="  project_select.changeCellStyle(arguments[0]), 
                                            project_select.rememberFieldData('{{ p.project_id }}', '{{ p.project_name }}'), 
                                            div_text.addingText('project: ->', project_select.name_field), 
                                            div_text.insertDivText(project_select_div_name), 
                                            printForm(project_user_form_div_name, project_select, user_select)" 
                                            class='TableCell'>
                                {{ p.project_name }} 
                            </div>
                        {% endfor %}
                    </div>
                </div>
                <div class='EmptyBlockBetweenTables'>
                </div>
                <div class='UserTable'>
                    <div id='div_user' class='Table'>
                        <div class='TableTitle'>
                            <center> user: </center>
                        </div>
                        {% for u in user %}
                            <div onclick="  user_select.changeCellStyle(arguments[0]), 
                                            user_select.rememberFieldData('{{ u.user_id }}', '{{ u.user_name }}'), 
                                            div_text.addingText('user: ->', user_select.name_field), 
                                            div_text.insertDivText(user_select_div_name), 
                                            printForm(project_user_form_div_name, project_select, user_select)" 
                                            class='TableCell'>
                                {{ u.user_name }}
                            </div>
                        {% endfor %}
                    </div>
                </div>
                <div class="EmptyBlockBetweenTables">
                </div>
                <div class='UserTable'>
                    <div id='div_his_user' class='Table'>
                        <div class='TableTitle'>
                            <center> users on project now: </center>
                        </div>
                        {% for pu in his_project_user %}
                            <div class='TableUnpointCell'>
                                {{ pu.project_name }}->{{ pu.user_name }}
                            </div>
                        {% endfor %}
                    </div>
                </div>
                <div class='HSpaceBeforeForm'>
                </div>
                <div class='EmptyBlockBeforeForm'>
                </div>
                <div id='project_user_form' name='project_user_form' class='BaseForForm'>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

